package com.haha.bot.register;


import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author haha
 */
@EnableConfigurationProperties(RegistryProperties.class)
@Configuration
@ConditionalOnBean(annotation = EnableRegistryConfig.class)
public class RegistryAutoConfigure {

    @Bean
    public void registryHaha() {
        System.out.println("1111");
    }

}
